package Lecture7;

public class ClassTask3 {

	public static void main(String[] args) 
	{
		int n = 3;
		triangle(n);
	}

	public static void triangle( int n)
	{
		
	 for(int i = 0; i<= n; i++)
	 {
		 
		 for (int j = 1; j <= i; j++)
		 {
			 System.out.print(j + " ");
		 }
		 System.out.println();
	 }
		
		
	}
	
	
	
	
}
